home *** CD-ROM | disk | FTP | other *** search
/ Windows Expert / Windows Expert.iso / windownt / uniput.zip / UNIPUT.H < prev    next >
C/C++ Source or Header  |  1992-10-26  |  2KB  |  69 lines

  1. /* uniput.h - header file */
  2.  
  3. /* function prototypes, window procedures first. */
  4. LRESULT CALLBACK MainWndProc    (HWND, UINT, WPARAM, LPARAM);
  5. LRESULT CALLBACK DisplayWndProc (HWND, UINT, WPARAM, LPARAM);
  6. LRESULT CALLBACK StatusWndProc (HWND, UINT, WPARAM, LPARAM);
  7. LRESULT CALLBACK About (HWND, UINT, WPARAM, LPARAM);
  8.  
  9.  
  10.  
  11.  
  12.  
  13. /* menu IDs */
  14. #define  IDM_MDICASCADE     1001
  15. #define  IDM_MDITILE        1002
  16.  
  17. #define  IDM_SHOWHEX        2000
  18. #define  IDM_SHOWNAMES      2001
  19.  
  20. #define    IDM_CHARBASE     2400
  21. #define    IDM_CHAR10       2410
  22. #define    IDM_CHAR16       2416
  23. #define    IDM_CHAR20       2420
  24. #define    IDM_CHAR32       2432
  25. #define    IDM_CHAR40       2440
  26. #define    IDM_CHAR64       2464
  27.  
  28. #define    IDM_FONTBASE     2500
  29. #define    IDM_FONT18       2518
  30. #define    IDM_FONT36       2536
  31. #define    IDM_FONT72       2572
  32.  
  33.  
  34. #define  IDM_NEWWINDOW      3001
  35. #define  IDM_NEWFILE        3002
  36. #define  IDM_CLOSEFILE      3003
  37.  
  38. #define  IDM_HELP           4001
  39. #define  IDM_ABOUT          4002
  40.  
  41.  
  42. /* USER messages sent between windows. */
  43. #define  WMU_NEWRANGE       WM_USER+0x1001
  44. #define  WMU_NEWFONT        WM_USER+0x1002
  45. #define  WMU_SETFILENAME    WM_USER+0x1003
  46. #define  WMU_SETNCHAR       WM_USER+0x1004
  47. #define  WMU_CHARACTER      WM_USER+0x1005
  48.  
  49.  
  50. /* define strings and flags for use in warning message boxes */
  51. #define MBGETFONTDATAERR    TEXT("Not a scalable font.")
  52. #define MBERROR             TEXT("Application Error.")
  53. #define MBERRORFLAGS        MB_OK | MB_ICONHAND
  54.  
  55.  
  56. /* properties of the "Lucida Sans Unicode" font */
  57. #define UCFONTHEIGHT       36
  58. #define UCFONTWIDTH        16
  59.  
  60.  
  61.  
  62. /* global variables */
  63. extern HANDLE  hInst;
  64. extern HWND    hwndMain;
  65. extern HWND    hwndClient;
  66. extern HWND    hwndStatus;
  67.  
  68. extern int gShowhex, gShowNames;
  69.